package com.goat.train.common.util;

import cn.hutool.core.util.IdUtil;

public class SnowUtil {
    private static int datacenterId = 1;
    private static int workid = 1;

    public static long nextId() {
        return IdUtil.createSnowflake(datacenterId, workid).nextId();
    }

    //nextString
    public static String nextString() {
        return IdUtil.createSnowflake(datacenterId, workid).nextIdStr();
    }
}
